package utils

import "fmt"
//变量名，函数量小写是私有，大写是public
var Num int =100
func Cal(n1 float32,n2 float32,op byte) float32 {

	var res float32 
	switch op {
	case '+':
		res = n1+n2
	case '-':
		res = n1-n2
	case '*':
		res = n1*n2 
	case '/':
		res = n1/n2
	default:
		fmt.Println("not support")
	}
	return res
}